Also support the new devkit when running from Builder. Unlike for
the run-gnome-shell script, we cannot easily support both --devkit
and --nested (without adding some wrapper), so drop the latter.
It should be fairly uncommon to use Builder to develop against
older branches, so hopefully this shouldn't be a limitation in
practice.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3731>
create_builder_config() {
local container_id=$(podman container inspect --format='{{.Id}}' $NAME)
local top_srcdir=$(realpath $(dirname $0)/../..)
- local wayland_display=builder-wayland-0
cat >> $top_srcdir/.buildconfig <<-EOF
name=$NAME Toolbox
runtime=podman:$container_id
prefix=/usr
- run-command=dbus-run-session gnome-shell --nested --wayland-display=$wayland_display
+ run-command=dbus-run-session gnome-shell --devkit
[toolbox-$NAME.runtime_environment]
- WAYLAND_DISPLAY=$wayland_display
G_MESSAGES_DEBUG=GNOME Shell
XDG_DATA_DIRS=${XDG_DATA_DIRS:-/usr/local/share:/usr/share}
EOF